const getters = {
  // 建立子模块的快捷访问
  // 在父模块的名字： 父模块的state => state.子模块名字.子模块变量名 （state.子模块名字 表示子模块的state ）
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, //token
  name: state => state.user.userInfo.username, //用户名
  userId: state => state.user.userInfo.userId, //用户id
  staffPhoto: state => state.user.userInfo.staffPhoto, //用户头像 
  companyId: state => state.user.userInfo.companyId, //用户所属的公司id
  routes: state => state.permission.routes  //菜单路由
}
export default getters
